home *** CD-ROM | disk | FTP | other *** search
- > I have (half) written a paint package, but am experiencing several
- > problems with it. (surprisingly)
-
- You have my sympathy - I've been working on one for over a year.
-
- > 1) Can anyone tell me the formula for a parabola? Or preferably, can
- > anyone tell me how to write a curve tool like the one in Deluxe paint?
-
- Somewhere I have the formula for Bezier curves - I'll see if I can dig it
- up. (I think it was in a math textbook...)
-
- > 2) What I want to do, for example, is pick up a circle of colour 0 from
- > a background of colour 1 as a BOB, like:
- > ______
- > | __ |<--colour 1
- > | / \ |
- > | \__/<|---colour 0
- > |______|
- >
- > BUT I would like colour 1 to be transparent and NOT colour 0! I found a
- > machine code procedure called MAKE_MASK on an AmosPro Productivity disk
- > and tried to use that in conjunction with NO MASK but without success.
-
- The way I did this was to do it "by hand" reading each point in and
- checking to see if it was BG or FG, sticking it on a spare screen, and
- then grabbing the bob from there. It took forever, though (see below :).
-
- > 3) I presume there's no way to REDIM an array is there?
-
- Nope, but...
-
- > 4) Or SET BUFFER within a program? I want to have a list of fonts but,
- > since I don't have a hard drive, I have hardly any. When I gave the
- > program to a friend it said "out of variable space" or something. Do I
- > just whack it up high and hope for the best? If so, is there a way of
- > telling a maximum number of fonts that the buffer would hold? I don't
- > think I can do an interface ActiveList directly from the FONT$() array
- > can I??
-
- ...if you use banks instaed of arrays, you can make them semi-dynamic
- just by opening and closing them...
-
- > 5) Is there a faster version of PLOT and POINT as I'm doing "image
- > processing" (sort of..) in the program and it's REALLY slow. I have
- > seen an image processor I think is in Amos (because you can Ami+A it
- > into Wbench) and it makes mine look foolish by being so fast - how does
- > it do it?
-
- It probably uses an external ML function. Try getting the Turbo Plus
- extension - it has an F Plot command which is faster than the regular
- plot command - I'm not sure if there's an F Point. The image processing
- thing I wrote in AMOS converted screens to banks so that I could get/plot
- a point with Peek and Poke, which sped things up a bit, although you
- still have the inexorable wait while the image is copied to and from the
- bank...
-
- > I think that'll have to do for now, although I'm sure I'll think of some
- > more soon! Sorry about this, I hope you don't mind all this crap. If
- > you can help with any of it I will be incredibly grateful as many of
- > these things have plagued me for AGES!!!
- >
- > Thanks..
- >
- > --
- > Semprini
-
- I've got a boil on my Semprini...
-
- > (Oh yeah...happy new year etc etc..)
-
- Same to you.
-
- --
- GCS -d+ H+ s++:- g+ p? !au a- w+++ !Productions 1995
- v* C+++ UB+++A++++ P++ L++ E+ N+++ http://satelnet.org/~mentat/
- K+ !W--- M-- V po- Y+ t++ 5+ jx G?
- R tv++ D- B--- e+ u** h f r++ !n y+ "No matter where you go, there you are."
-
-
-
-